package com.kara.webapp.pages.admin.student;

import org.apache.tapestry5.annotations.ActivationRequestParameter;
import org.apache.tapestry5.annotations.InjectPage;


public class StudentAdmin {

  @ActivationRequestParameter 
  private long clazzId;
  
  @InjectPage
  private StudentEdit studentEdit;

  public void setClazzId(long clazzId) {
    this.clazzId = clazzId;
  }
  
  Object onActionFromCreateNewStudent(){
    studentEdit.setClazzId(clazzId);
    return studentEdit;
  }
}
